package com.hj.collegetravel.models;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class CIndex implements Serializable {
    private Integer iId;

    private String iPic;

    private String iDesc;

    private String iLink;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date iTime;

    private Integer iIndex;

    private Integer iDisplay;

    private static final long serialVersionUID = 1L;

    public Integer getiId() {
        return iId;
    }

    public void setiId(Integer iId) {
        this.iId = iId;
    }

    public String getiPic() {
        return iPic;
    }

    public void setiPic(String iPic) {
        this.iPic = iPic == null ? null : iPic.trim();
    }

    public String getiDesc() {
        return iDesc;
    }

    public void setiDesc(String iDesc) {
        this.iDesc = iDesc == null ? null : iDesc.trim();
    }

    public String getiLink() {
        return iLink;
    }

    public void setiLink(String iLink) {
        this.iLink = iLink == null ? null : iLink.trim();
    }

    public Date getiTime() {
        return iTime;
    }

    public void setiTime(Date iTime) {
        this.iTime = iTime;
    }

    public Integer getiIndex() {
        return iIndex;
    }

    public void setiIndex(Integer iIndex) {
        this.iIndex = iIndex;
    }

    public Integer getiDisplay() {
        return iDisplay;
    }

    public void setiDisplay(Integer iDisplay) {
        this.iDisplay = iDisplay;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", iId=").append(iId);
        sb.append(", iPic=").append(iPic);
        sb.append(", iDesc=").append(iDesc);
        sb.append(", iLink=").append(iLink);
        sb.append(", iTime=").append(iTime);
        sb.append(", iIndex=").append(iIndex);
        sb.append(", iDisplay=").append(iDisplay);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}